import menuService from '@/views/bpm/system/menu/service'
import dynamicFormFieldService from '@/views/bpm/system/dynamicFormField/service'
import dynamicFormService from '@/views/bpm/system/dynamicForm/service'

export const getSystemMenu = () => menuService.read.getSystemMenu()

export const getFormFieldByFormId = (formId) => {
    const params = {
        formId,
        hidden: 'DEFAULT_VISIBLE'
    }
    return dynamicFormFieldService.read.getListData(params)
}

export const getFormByFormCode = (formCode) => {
    const params = {
        formCode
    }
    return dynamicFormService.read.getListData(params)
}
